<h1>客户管理 - <span id="secondHeading">管理客户</span></h1>
<% if @flash[:notice] -%>
        <div id="notice"><%= @flash[:notice] %></div>
<% end -%>
<TABLE border="0" cellspacing="0" id="LIST_TB">
	<TR id="LIST_TB_TITLE">
    	<td>客户名</td>
    	<td>区域</td>
    	<td>联系人</td>
    	<td>电话</td>
        <!--
        <td>地址</td>
        -->
    	<td>电子邮件</td>
    	<td colspan="3">相关操作</td>
  	</tr>
<%@agents.each do |agent|%>
	  <tr id="LIST_TB_CONTENT1">
	    <td><%=agent.name%></td>
	    <td><%=agent.part%></td>
	    <td><%=agent.person%></td>
            <td><%=agent.phone%></td>
            <!--
            <td><%=agent.address1%></td>
            -->
	    <td><%=agent.email%></td>
	    <td><a href="/other_org/show_agent/<%=agent.id%>"><img src="../images/product_info.gif"></a></td>
	    <td><a href="/other_org/edit_agent/<%=agent.id%>"><img src="../images/edit.gif"></a></td>
	    <td><a href="/other_org/del_agent/<%=agent.id%>" onclick="return confirm('你确定要删除该客户吗?');"><img src="../images/delete.gif"></a></td>
	  </tr>
<%end%>
</table>
<table>
        <tr>
                <td>
                        <input type="button" value="打印当前页" class="sub" onclick="openPrintWindow('LIST_TB')"/>
                        <input type="button" value="导出当前数据" class="sub" onclick="CellAreaExcel('LIST_TB')"/>
                </td>
        </tr>
</table>
